[dgit import tarball siridb-server 2.0.53-1 siridb-server_2.0.53-1.debian.tar.xz]
--- /dev/null
+siridb-server (2.0.53-1) unstable; urgency=medium
+
+ * New upstream version 2.0.53
+ * Build-Depends: add libcrypt-dev (Closes: #1107003)
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 15 Nov 2025 08:44:39 +0100
+
+siridb-server (2.0.52-1) unstable; urgency=medium
+
+ * New upstream version 2.0.52
+
+ -- Paul Gevers <elbrus@debian.org> Thu, 26 Sep 2024 18:59:22 +0200
+
+siridb-server (2.0.51-4) unstable; urgency=medium
+
+ * Don't run valgrind tests on armhf until bug 1061496 is fixed
+ * tests: give server a bit time to start up (Closes: #1079984)
+
+ -- Paul Gevers <elbrus@debian.org> Thu, 29 Aug 2024 16:54:49 +0200
+
+siridb-server (2.0.51-3) unstable; urgency=medium
+
+ * tests: add --retry to first curl to avoid failing if siridb-server
+ isn't ready yet (Closes: #1067705)
+
+ -- Paul Gevers <elbrus@debian.org> Thu, 23 May 2024 22:34:09 +0200
+
+siridb-server (2.0.51-2) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Update renamed lintian tag names in lintian overrides.
+ * Update standards version to 4.6.1, no changes needed.
+
+ [ Paul Gevers ]
+ * Add tzdata to Build-Depends (Closes: #1027381)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 30 Oct 2023 20:29:46 +0100
+
+siridb-server (2.0.51-1) unstable; urgency=medium
+
+ * New upstream release
+ - Drop libuv1 patch, solved differently upstream
+ * watch: update to use github API
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 28 Oct 2023 23:12:25 +0200
+
+siridb-server (2.0.48-1) unstable; urgency=medium
+
+ [ Paul Gevers ]
+ * New upstream release
+
+ [ Nick Rosbrook ]
+ * Add patch to prevent segfault with libuv1 1.44.2 (Closes: #1017748)
+
+ -- Paul Gevers <elbrus@debian.org> Thu, 25 Aug 2022 21:06:59 +0200
+
+siridb-server (2.0.45-1) unstable; urgency=medium
+
+ [ Ileana Dumitrescu ]
+ * Non-maintainer upload
+ * New upstream release
+ * Added latomic patch to port for riscv (Closes: #983768)
+
+ -- Ileana Dumitrescu <ileanadumi95@protonmail.com> Mon, 07 Feb 2022 16:09:39 +0100
+
+siridb-server (2.0.44-1) unstable; urgency=medium
+
+ [ Paul Gevers ]
+ * New upstream release
+ * Drop patch, applied upstream
+
+ [ Debian Janitor ]
+ * Update standards version to 4.5.1, no changes needed.
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 02 Jan 2022 17:40:53 +0100
+
+siridb-server (2.0.43-1) unstable; urgency=medium
+
+ [ Helmut Grohne ]
+ * Improve cross building: (Closes: #982363)
+
+ [ Paul Gevers ]
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Fri, 19 Feb 2021 20:37:54 +0100
+
+siridb-server (2.0.42-1) unstable; urgency=medium
+
+ New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 03 Jan 2021 21:54:23 +0100
+
+siridb-server (2.0.40-1) unstable; urgency=medium
+
+ * New upstream release
+ - Drop patches (applied upstream)
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 18 Oct 2020 20:47:25 +0200
+
+siridb-server (2.0.38-3) unstable; urgency=medium
+
+ * Drop valgrind check on mips*el for now
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 12 Sep 2020 21:30:15 +0200
+
+siridb-server (2.0.38-2) unstable; urgency=medium
+
+ * Only add valgrind as Build-Depends where it exists
+ * Add patches to fix issues found by valgrind on mips*el
+
+ -- Paul Gevers <elbrus@debian.org> Thu, 10 Sep 2020 21:24:55 +0200
+
+siridb-server (2.0.38-1) unstable; urgency=medium
+
+ [ Paul Gevers ]
+ * New upstream release
+ * Add simple (but not superficial) autopkgtest
+
+ [ Debian Janitor ]
+ * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
+ Repository-Browse.
+
+ -- Paul Gevers <elbrus@debian.org> Thu, 10 Sep 2020 09:55:01 +0200
+
+siridb-server (2.0.37-1) unstable; urgency=medium
+
+ * New upstream release
+ - Fix FTBFS with GCC-10 (Closes: #957800)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 27 Jul 2020 07:38:34 +0200
+
+siridb-server (2.0.36-1) unstable; urgency=medium
+
+ * New upstream release
+ - Fixed headers (Closes: #933220)
+ * Add new B-D: libyajl-dev
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 17 May 2020 16:02:21 +0200
+
+siridb-server (2.0.34-1) unstable; urgency=medium
+
+ * New upstream release
+ * Update d/copyright
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 24 Jul 2019 14:58:21 +0200
+
+siridb-server (2.0.32-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 23 Jan 2019 20:06:04 +0100
+
+siridb-server (2.0.30-1) unstable; urgency=medium
+
+ [ Jeroen van der Heijden ]
+ * New upstream release
+ - SiriDB Server can now compile with gnu89/gnu90 (#101)
+ - Removed deprecated info- and loaddb requests
+ - Added named pipe support (#104, @pavelxdd)
+ - Changed writing buffer length to reduce random io
+ - Added option to fsync the buffer on a configurable interval
+ - Use posix_fadvise() on the buffer file (@Svedrin)
+ - The buffer size can now be adjusted by using the database.conf
+ configuration file
+ - Added conversion of invalid value types
+ * Lower log level of the service file
+
+ [ Paul Gevers ]
+ * Run testsuite during build
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 28 Oct 2018 18:43:45 +0100
+
+siridb-server (2.0.29-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 25 Jul 2018 21:57:12 +0200
+
+siridb-server (2.0.28-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 02 Jul 2018 14:00:34 +0200
+
+siridb-server (2.0.27-1) unstable; urgency=medium
+
+ * New upstream release
+ * Update Maintainer and Vcs fields (Closes: #890700)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 28 May 2018 10:22:52 +0200
+
+siridb-server (2.0.26-1) unstable; urgency=medium
+
+ * New upstream release
+ * Drop all patches
+ * Add man page
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 06 Jan 2018 07:54:21 +0100
+
+siridb-server (2.0.25-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #882678)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 04 Dec 2017 21:40:02 +0100
--- /dev/null
+Release/siridb-server.1
--- /dev/null
+Source: siridb-server
+Section: database
+Priority: optional
+Maintainer: SiriDB Maintainers <team+debian-siridb-packaging-team@tracker.debian.org>
+Uploaders:
+ Jeroen van der Heijden <jeroen@cesbit.com>,
+ Paul Gevers <elbrus@debian.org>,
+Rules-Requires-Root: no
+Build-Depends:
+ debhelper-compat (= 13),
+ help2man,
+ libcleri-dev,
+ libcrypt-dev,
+ libpcre2-dev,
+ libuv1-dev,
+ libyajl-dev,
+ tzdata <!nocheck>,
+ uuid-dev,
+ valgrind-if-available <!nocheck>,
+Homepage: https://siridb.net/
+Vcs-Browser: https://salsa.debian.org/siridb-team/siridb-server
+Vcs-Git: https://salsa.debian.org/siridb-team/siridb-server.git
+Standards-Version: 4.6.1
+
+Package: siridb-server
+Architecture: any
+Depends:
+ ucf,
+ ${misc:Depends},
+ ${shlibs:Depends},
+Description: SiriDB time series database server
+ SiriDB is a scalable, robust and fast time series database. Build from the
+ ground up SiriDB uses a mechanism to operate without a global index and allows
+ server resources to be added on the fly. SiriDB's query language includes
+ dynamic grouping of time series for easy analysis over large amounts of time
+ series.
--- /dev/null
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: *
+Copyright: 2016-2022, Cesbit <jeroen@cesbit.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2017-2019 Paul Gevers <elbrus@debian.org>
+License: Expat
+
+Files: include/lib/http_parser.h
+ src/lib/http_parser.c
+Copyright: ?, Joyent, Inc. and other Node contributors
+License: Expat
+
+License: Expat
+ The MIT License
+ .
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated
+ documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to
+ whom the Software is furnished to do so, subject to the
+ following conditions:
+ .
+ The above copyright notice and this permission notice shall
+ be included in all copies or substantial portions of the
+ Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT
+ WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
--- /dev/null
+etc/siridb
+var/lib/siridb
--- /dev/null
+README.md
+docs/*
--- /dev/null
+Release/siridb-server usr/lib/siridb-server
+help usr/share/siridb-server
+siridb.conf usr/share/siridb-server/conf_templates
--- /dev/null
+usr/lib/siridb-server/siridb-server usr/bin/siridb-server
+usr/share/siridb-server/help usr/lib/siridb-server/help
+usr/share/siridb-server/help usr/share/doc/siridb-server/help
--- /dev/null
+Release/siridb-server.1
--- /dev/null
+From 8e6e9a883121dc8077e2b29b51fe6f399c6d7141 Mon Sep 17 00:00:00 2001
+From: ildumi95 <ileanadumi95@protonmail.com>
+Date: Mon, 7 Feb 2022 15:47:57 +0100
+Subject: [PATCH] link with libatomic for test
+
+---
+ test/test.sh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/test/test.sh b/test/test.sh
+index 2683a52c..de9bd235 100755
+--- a/test/test.sh
++++ b/test/test.sh
+@@ -25,7 +25,7 @@ run () {
+ OUT=$1.out
+ rm "$OUT" 2> /dev/null
+
+- gcc -I"../include" -O0 -g3 -Wall -Wextra -Winline -std=gnu99 $SOURCE $C_SRC -lm -lpcre2-8 -lcleri -luuid -luv -lyajl $LCRYPT -o "$OUT"
++ gcc -I"../include" -O0 -g3 -Wall -Wextra -Winline -std=gnu99 $SOURCE $C_SRC -lm -latomic -lpcre2-8 -lcleri -luuid -luv -lyajl $LCRYPT -o "$OUT"
+ if [[ "$NOMEMTEST" -ne "1" ]]; then
+ valgrind --tool=memcheck --error-exitcode=1 --leak-check=full -q ./$OUT
+ else
+@@ -45,4 +45,4 @@ else
+ run "test_$name"
+ fi
+
+-exit $RET
+\ No newline at end of file
++exit $RET
+--
+2.30.2
+
--- /dev/null
+0001-link-with-libatomic-for-test.patch
--- /dev/null
+#!/bin/sh
+set -e
+
+ucf --debconf-ok /usr/share/siridb-server/conf_templates/siridb.conf /etc/siridb/siridb.conf
+ucfr siridb-server /etc/siridb/siridb.conf
+
+#DEBHELPER#
+exit 0
--- /dev/null
+#!/bin/sh
+set -e
+
+config_file=/etc/siridb/siridb.conf
+
+case "$1" in
+ purge)
+ [ -d "/var/lib/siridb" ] && rm -rf /var/lib/siridb
+ if which ucf >/dev/null 2>&1; then
+ ucf --purge $config_file
+ fi
+ if [ -x "`which ucfr 2>/dev/null`" ]; then
+ ucfr --purge siridb-server $config_file
+ fi
+ for ext in .ucf-new .ucf-old .ucf-dist ""; do
+ rm -f "$config_file$ext"
+ done
+ ;;
+ remove)
+ ;;
+esac
+
+#DEBHELPER#
+exit 0
--- /dev/null
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -latomic
+
+%:
+ dh $@
+
+override_dh_auto_build-arch:
+ dh_auto_build --sourcedirectory=Release
+ help2man -N -n"time series database server" Release/siridb-server > Release/siridb-server.1
+
+override_dh_auto_clean:
+ $(MAKE) --directory=Release clean
+ dh_auto_clean
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ $(MAKE) --directory=Release test
+endif
--- /dev/null
+# The help files are arch indep, so this is no issue
+siridb-server: ldconfig-escape usr/lib/siridb-server/help -> usr/share/siridb-server/help
+
+# The help files are needed by the program
+siridb-server: package-contains-documentation-outside-usr-share-doc
--- /dev/null
+[Unit]
+Description=SiriDB Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/siridb-server --config /etc/siridb/siridb.conf --log-level warning
+StandardOutput=journal
+LimitNOFILE=65535
+TimeoutStartSec=10
+TimeoutStopSec=300
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+3.0 (quilt)
--- /dev/null
+Tests: http-api
+Depends: @, curl
+Restrictions: needs-root, isolation-container
--- /dev/null
+#!/bin/sh
+set -e
+
+RES=0
+
+echo '* fixing /etc/siridb/siridb.conf'
+sed --in-place 's/http_api_port = 0/http_api_port = 9020/' /etc/siridb/siridb.conf
+
+echo '* restarting siridb-server'
+service siridb-server restart
+
+echo '* touch res.txt'
+touch res.txt
+
+echo '* sleep to let the server start up properly'
+sleep 5
+
+echo '* run queries'
+echo ' get-version'
+curl --silent --show-error --location --output res.txt \
+ --retry 10 \
+ --request GET 'http://localhost:9020/get-version' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' || RES=1
+cat res.txt
+echo
+
+echo ' new-database'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/new-database' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "dbname": "sampledb",
+ "time_precision": "s",
+ "buffer_size": 8192,
+ "duration_num": "1w",
+ "duration_log": "3d"
+}' || RES=1
+cat res.txt
+echo
+expect='"OK"'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' new-account'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/new-account' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "account": "bob",
+ "password": "passwd4bob"
+}' || RES=1
+cat res.txt
+echo
+expect='"OK"'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' change-password'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/change-password' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "account": "bob",
+ "password": "pass"
+}' || RES=1
+cat res.txt
+echo
+expect='"OK"'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' drop-account'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/drop-account' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "account": "bob"
+}' || RES=1
+cat res.txt
+echo
+expect='"OK"'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' drop-database'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/drop-database' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "database": "sampledb",
+ "ignore_offline": false
+}' || RES=1
+cat res.txt
+echo
+expect='"OK"'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' drop-database again'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/drop-database' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "database": "sampledb",
+ "ignore_offline": false
+}' || RES=1
+cat res.txt
+echo
+expect='{"error_msg":"cannot find database '"'"'sampledb'"'"'"}'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' get-accounts'
+curl --silent --show-error --location --output res.txt \
+ --request GET 'http://localhost:9020/get-accounts' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ=='
+cat res.txt
+echo
+expect='["sa"]'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' new-database for queries'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/new-database' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ==' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "dbname": "sampledb",
+ "time_precision": "s",
+ "buffer_size": 8192,
+ "duration_num": "1w",
+ "duration_log": "3d"
+}' || RES=1
+cat res.txt
+echo
+expect='"OK"'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' get-databases'
+curl --silent --show-error --location --output res.txt \
+ --request GET 'http://localhost:9020/get-databases' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic c2E6c2lyaQ=='
+cat res.txt
+echo
+expect='["sampledb"]'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' query data (nothing there)'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/query/sampledb' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic aXJpczpzaXJp' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "q": "select count() from '\''aggr'\''",
+ "t": "ms"
+}' || RES=1
+cat res.txt
+echo
+expect='{}'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' insert data'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/insert/sampledb' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic aXJpczpzaXJp' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "aggr": [
+ [1578933215, 42],
+ [1578933223, 123]
+ ]
+}' || RES=1
+cat res.txt
+echo
+expect='{"success_msg":"Successfully inserted 2 point(s)."}'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+echo ' query data'
+curl --silent --show-error --location --output res.txt \
+ --request POST 'http://localhost:9020/query/sampledb' \
+ --header 'Content-Type: application/json' \
+ --header 'Authorization: Basic aXJpczpzaXJp' \
+ --header 'Content-Type: text/plain' \
+ --data-raw '{
+ "q": "select count() from '\''aggr'\''",
+ "t": "ms"
+}' || RES=1
+cat res.txt
+echo
+expect='{"aggr":[[1578933223000,2]]}'
+if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
+
+exit $RES
--- /dev/null
+---
+Bug-Database: https://github.com/transceptor-technology/siridb-server/issues
+Bug-Submit: https://github.com/transceptor-technology/siridb-server/issues/new
+Repository: https://github.com/transceptor-technology/siridb-server.git
+Repository-Browse: https://github.com/transceptor-technology/siridb-server
--- /dev/null
+version=4
+ opts="searchmode=plain,\
+ filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%" \
+ https://api.github.com/repos/SiriDB/siridb-server/releases?per_page=50 \
+ https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@